// export default class controller {
//   constructor(ctx, app) {

//   }
//   async success(){
//     console.log('000000')
//   }
// err(){
//   console.log('---')
// }
// }
const { controller, helper } = require('thinkkoa-ali-serverless')

module.exports = class extends controller {
  constructor(ctx, app) {
    super(ctx, app)
    console.log('=====',ctx,app)
    this.ctx = ctx || {};
    this.app = app || {};
  }
  suc(data) {
    console.log('this',this)
    this.ctx.body = {
      code: 0,
      message: 'success',
      data: data,
    }
  }
}